package com.office.meetingManage.meetroom.service;

import com.office.meetingManage.meetroom.pojo.OaMeetroom;
import com.office.meetingManage.meetroom.pojo.otherPojo.MeetCountExcel;
import com.office.util.PageModel;

import java.util.List;

/**
 * @Auther: 许月
 * @Date: 2022/10/27/11:19
 */
public interface MeetroomService {
    /**
     * 查询会议列表
     * @param meetroom
     * @return
     */
    PageModel<OaMeetroom> getList(OaMeetroom meetroom,PageModel<OaMeetroom> pageModel);

    /**
     * 通过id查询
     * @param mId
     * @return
     */
    OaMeetroom getBymId( Integer mId);


    /**
     * 修改会议室
     * @param meetroom
     * @return
     */
    Boolean updateMeetRoom(OaMeetroom meetroom);

    /**
     * 删除会议室
     * @param mId
     * @return
     */
    Boolean deleteMeetRoom(Integer mId);

    /**
     * 添加会议室操作
     * @param meetroom
     * @return
     */
    Boolean addMeetRoom(OaMeetroom meetroom);

    /**
     * 会议室报表导出专用
     * @param startMonth 所选月份
     * @param nextMonth
     * @return
     */
    List<MeetCountExcel> findMeetCount(String startMonth, String nextMonth);

    /**
     * 判断添加的会议室名称是否重复
     * @param meetRoomName
     * @return
     */
    Boolean findByMeetRoomName(String meetRoomName);

    /**
     * 判断添加的会议室地址是否重复
     * @param meetRoomPlace
     * @return
     */
    Boolean findByMeetRoomPlace(String meetRoomPlace);


}
